package com.ruoyi.project.system.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 课程对象 course
 * 
 * @author ruoyi
 * @date 2020-10-07
 */
public class Course extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 标识 */
    private Integer id;

    /** 标题 */
    @Excel(name = "标题")
    private String title;

    /** 章节标识 */
    private Long courseCatalogId;

    /** 章节名称 */
    @Excel(name = "章节名称")
    private String courseCatalogName;

    /** 排序 */
    private Long sequence;

    /** 次数 */
    private Long count;

    /** 资源地址 */
    @Excel(name = "资源地址")
    private String resourceUrl;

    /** 状态 */
    @Excel(name = "状态")
    private Long status;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createDt;

    /** 团队售价 */
    @Excel(name = "团队售价")
    private BigDecimal groupPrice;

    /** 单人售价 */
    @Excel(name = "单人售价")
    private BigDecimal price;

    /**
     * 通知封面
     */
    private String coverImg;

    public String getCoverImg() {
        return coverImg;
    }

    public void setCoverImg(String coverImg) {
        this.coverImg = coverImg;
    }

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setCourseCatalogId(Long courseCatalogId) 
    {
        this.courseCatalogId = courseCatalogId;
    }

    public Long getCourseCatalogId() 
    {
        return courseCatalogId;
    }
    public void setCourseCatalogName(String courseCatalogName) 
    {
        this.courseCatalogName = courseCatalogName;
    }

    public String getCourseCatalogName() 
    {
        return courseCatalogName;
    }
    public void setSequence(Long sequence) 
    {
        this.sequence = sequence;
    }

    public Long getSequence() 
    {
        return sequence;
    }
    public void setResourceUrl(String resourceUrl) 
    {
        this.resourceUrl = resourceUrl;
    }

    public String getResourceUrl() 
    {
        return resourceUrl;
    }
    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }
    public void setCreateDt(Date createDt) 
    {
        this.createDt = createDt;
    }

    public Date getCreateDt() 
    {
        return createDt;
    }
    public void setGroupPrice(BigDecimal groupPrice) 
    {
        this.groupPrice = groupPrice;
    }

    public BigDecimal getGroupPrice() 
    {
        return groupPrice;
    }
    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }

    public Long getCount() {
        return count;
    }

    public void setCount(Long count) {
        this.count = count;
    }

    @Override
    public String toString() {
        return "Course{" +
                "id=" + id +
                ", title='" + title + '\'' +
                ", courseCatalogId=" + courseCatalogId +
                ", courseCatalogName='" + courseCatalogName + '\'' +
                ", sequence=" + sequence +
                ", count=" + count +
                ", resourceUrl='" + resourceUrl + '\'' +
                ", status=" + status +
                ", createDt=" + createDt +
                ", groupPrice=" + groupPrice +
                ", price=" + price +
                '}';
    }
}
